home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!serpens!not-for-mail
- From: mlelstv@serpens.rhein.de (Michael van Elst)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Amiga doesn`t need Planar!
- Date: 2 Feb 1996 00:58:51 +0100
- Organization: dis-
- Message-ID: <4erk3r$pdn@serpens.rhein.de>
- References: <john.hendrikx.4apz@grafix.xs4all.nl>
- NNTP-Posting-Host: serpens.rhein.de
-
- john.hendrikx@grafix.xs4all.nl (John Hendrikx) writes:
-
- >Yes, but a planar system needs more memory accesses on average because of more
- >severe alignment restrictions than Chunky,
-
- or less because of different needs of bits per pixel.
-
- >but also because the memory it needs
- >to access isn't located closely together like with Chunky.
-
- Doesn't matter. Graphics uses mass data. It is just you CPU that cannot
- handle planar graphics.
-
- >In other words
- >Planar can't take advantage of wider memory-busses as good as Chunky can.
-
- That's garbage. With a wider memory bus you increase alignment needs for
- both systems. And with your CPU-only system you can't use much beyond 32bit.
- Of course that's not a real chunky problem.
-
- On the other hand it is pretty simple to use the wider bus to access completely
- different regions of the RAM. You can scale the planar hardware with the bus width
- a operate on multiple planes in parallel.
-
- >You draw a rectangle at (0,0)-(15,99) on a 16-bit orientated planar display of
- >8 bitplanes deep (the best case). This requires 8x100 WORD accesses (only
- >writes as I assume there is masking hardware).
-
- >You draw a rectangle at (1,0)-(16,99) on a 16-bit orientated planar display of
- >8 bitplanes deep (a bit worse case). This requires 2x8x100 WORD accesses (as
- >it crosses a memory word boundary, no funnel shifter is gonna fix that
- >problem).
-
- >You draw a rectangle at (15,0)-(18,99) (only 4 pixels wide) on a 16-bit
- >orientated planar display of 8 bitplanes deep (a very bad case). This requires
- >2x8x100 WORD accesses.
-
- >Now chunky:
-
- >First the best case: You draw a rectangle at (0,0)-(15,99) on a 8-bit chunky
- >display with 16-bit memory bus. This requires 8x100 WORD accesses
-
- >And the worst case: You draw a rectangle at (1,0)-(16,99) on a 8-bit chunky
- >display with 16-bit memory bus. This requires 9x100 WORD accesses.
-
- 8x100 WORD plus 2x100 BYTE.
-
- >And finally the case with the 4 pixels wide rectangle, at its worst case in
- >chunky: You draw a rectangle at (15,0)-(18,99) on a 8-bit chunky display with
- >16-bit memory bus. This requires 3x100 WORD accesses.
-
- 1x100 WORD and 2x100 BYTE.
-
- >As you can see the best planar gets is equal speed, but only under very, VERY
- >specific circumstances.
-
- Why don't you compare wider rectangles ? The more data you have the smaller are
- the differences. Why don't you compare the cases where not 8 bit per pixel are
- needed ?
-
- >Chunky wins hands down in the last case however. So
- >as I said, the line would have to be very thick to get good speeds on planar.
-
- Don't forget the overhead for the CPU to determine BYTE and WORD accesses, even
- more when you don't draw straight vertical lines.
-
- >Drawing a horizontal line would of course be better on planar (although still
- >equally fast in the best case), but as in that case the speed is about the same
- >it is not really interesting.
-
- Sure. Just the worst cases are interesting for you.
-
- >The point is that if it takes more memory accesses to do a specific action than
- >no matter what hardware you throw at it the number of memory accesses will
- >remain higher.
-
- No. Try a 12bit/pixel display and don't forget to count all the overhead involved
- in the CPU to handle packed data.
-
- --
- Michael van Elst
-
- Internet: mlelstv@serpens.rhein.de
- "A potential Snark may lurk in every tree."
-